using System;
using Common.Enumerations;
using Newtonsoft.Json;
using PetaPoco;
using Sanelib.DataView;

namespace Common.Views
{
	[TableName("NoteView")]
	public class NoteView : AuditedView
	{
        [JsonIgnore]
        public EntityType EntityType { get; set; }
        public string EntityTypeValue { get { return EntityType == null ? "" : EntityType.Value; } set { EntityType = EntityType.FromValue(value); } }
        public string EntityTypeName { get { return EntityType == null ? "" : EntityType.DisplayName; } set { EntityType = EntityType.FromDisplay(value); } }
        public Guid ReferenceId { get; set; }
        public string ReferenceName { get; set; }
	}
}
